package Class;


public class SwfObject {
    public static  SwfObject swfObject = new SwfObject();
    public static class CacheItf {
        public int size;
        public String url;

        public  CacheItf() {
            this.size = 0;
            this.url = "";
        }
    }

    public static class Param {
        public String funcName = "";
        public String param = "";
        public String platform = "";
        public int width = DevNumber.numDefine1024;
        public int height = DevNumber.numDefine768;
        public int antialiasing = 0;
        public String webglCanvas = "canvas";
        public String flashCanvas = "FlashDiv";
        public String workingFolderFlash = "data/as3/";
        public String workingFolderWebgl = "data/js/";
        public String swfFlash = "mandreel.swf";
        public boolean log = true;
        public boolean mandreelJSCompressed = true;
        public boolean disableDepth = true;
        public boolean rightClickEnable = true;
        public boolean swfPreloader = true;
        public boolean restoreContext = true;
        public CacheItf cache;

        public Param(String platform) {
            this.platform = platform;
            this.cache = new CacheItf();
        }

        public void mandreelInit() {
        }
    }

    public boolean hasFlashPlayerVersion(String type) {
        return true;
    }

    public Param getObjectById(String type) {
        return new Param(type);
    }
}
